FROM ubuntu:20.04

LABEL maintainer="huyan"

COPY requirements.txt .

RUN apt update &&  \
    apt upgrade;  \
    pip install --no-cache-dir -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com -r requirements.txt &&  \
    rm requirements.txt

ADD . /app
WORKDIR /app

ENTRYPOINT ["python", "manage.py"]